package com.hbnu.pojo;

import javax.lang.model.element.NestingKind;

public class Student {
    private int id;
    private String sname;
    private int sex;
    private String password;

    public Student() {

    }

    public Student(String sname, int sex, String password) {
        this.sname = sname;
        this.sex = sex;
        this.password = password;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public int getSex() {
        return sex;
    }

    public void setSex(int sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", sname='" + sname + '\'' +
                ", sex=" + sex +
                '}'+"\n";
    }
}
